package com.kiwi.nixu;

public class RemoveSomeOneLNode {

    /**
     * 如何在只给定单链表中某个结点的指针的情况下删除该结点
     */
    public static void main(String[] args) {
        //LNode lNode1 = new LNode(1,null);
        //LNode lNode2 = new LNode(2,lNode1);
        //LNode lNode3 = new LNode(3,lNode2);
        //LNode lNode4 = new LNode(4,lNode3);
        //LNode lNode5 = new LNode(5,lNode4);
        //LNode lNode6 = new LNode(6,lNode5);
        //LNode lNode7 = new LNode(7,lNode6);
        //
        //LNode node=lNode7;
        //do{
        //    System.out.println(node.data);
        //    node=node.next;
        //}while(node!=null);
        //
        //System.out.println(">>>>>>>>>>>>>>>>>>");
        //
        //lNode5.data=lNode5.next.data;
        //
        //lNode5.next=lNode5.next.next;
        //LNode nodeNew=lNode7;
        //do{
        //    System.out.println(nodeNew.data);
        //    nodeNew=nodeNew.next;
        //}while(nodeNew!=null);

        //
        //Object o = new Object();
        //System.out.println(o.toString());
        //
        //List list = new ArrayList<String>();
        //list.add("String");
        //list.add("Integer");
        //list.add("Boolean");
        //System.out.println(list.stream().filter(x -> x.equals("String")).collect(Collectors.toList()));

        synchronized (RemoveSomeOneLNode.class) {

            System.out.println("'1111111111'");
        }
    }
}
